::placeholder {
    opacity: 0.5 !important;
}

::-ms-input-placeholder {
    opacity: 0.5 !important;
}

button {
    border: none;
}

.text-head {
    font-size: 1rem;
}
.text-sm {
    font-size: 0.8rem;
}
.text-lg {
    font-size: 1.2rem;
}

.page {
    &.page-auth {
        background: var(--cyan);
        background: linear-gradient(
            127deg,
            var(--primary-bg-color) 0%,
            var(--cyan) 100%
        );

        .header-brand-img {
            width: 150px;
            margin-bottom: 12px;
            filter: brightness(0) invert(1);
        }

        .is-invalid {
            border: 1px solid red;
        }
    }
}

/* Profile */
#avatar-btn {
    display: none;
}

.avatar {
    #avatar {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        transition: 0.25s all linear;
    }

    .avatar-edit {
        position: absolute;
        top: 0;
        right: 0;
        padding-top: 2px;
        background: #fff;
        border-radius: 50%;
        border: 1px solid #ccc;
        width: 24px;
        height: 24px;
        transition: 0.25s all linear;
        cursor: pointer;

        &:hover {
            background: #6c5ffc;
            border: 1px solid #fff;

            i {
                filter: brightness(0) saturate(100%) invert(100%) sepia(91%)
                    saturate(38%) hue-rotate(321deg) brightness(110%)
                    contrast(110%);
            }
        }

        &.logo-edit {
            top: -10px;
            right: -10px;
        }
    }

    #avatar-input,
    #logo-input {
        display: none;
    }
}

.avatar-success {
    position: relative;
    top: 1rem;
    display: none;
    color: green;
}
/* DatePicker JS */
.ui-datepicker .ui-datepicker-title {
    width: 120px;
}
/* Select2 JS */
.select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    padding-right: 1rem;
}

a.selected {
    color: #6c5ffc;
}

.preview-img {
    position: relative;
    display: inline-block;

    &.hidden {
        display: none;
    }

    img.img-preview {
        width: 180px;
        height: 120px;
        object-fit: cover;
    }

    .img-delete {
        position: absolute;
        top: 0.5rem;
        right: -0.6rem;
        background: #fff;
        border-radius: 50%;
        border: 1px solid #ccc;
        width: 24px;
        height: 24px;
        transition: 0.25s all linear;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;

        &:hover {
            background: #6c5ffc;
            border: 1px solid #fff;

            i {
                filter: brightness(0) saturate(100%) invert(100%) sepia(91%)
                    saturate(38%) hue-rotate(321deg) brightness(110%)
                    contrast(110%);
            }
        }
    }
}
.img-survey {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.select2-container.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);

    .select2-selection {
        border-color: #dc3545 !important;
    }
}

#logo {
    #logo-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.25s all linear;
    }

    .logo-delete {
        position: absolute;
        top: -10px;
        right: -10px;
        margin-bottom: 0;
        background: #fff;
        border-radius: 50%;
        border: 1px solid #ccc;
        width: 24px;
        height: 24px;
        transition: 0.25s all linear;
        cursor: pointer;

        &:hover {
            background: #6c5ffc;
            border: 1px solid #fff;

            i {
                filter: brightness(0) saturate(100%) invert(100%) sepia(91%)
                    saturate(38%) hue-rotate(321deg) brightness(110%)
                    contrast(110%);
            }
        }
    }

    #logo-input {
        display: none;
    }
}

/* Drag to Reorder */
.js-item {
    position: relative;
    background: #fff;
}
.drag-handle {
    position: absolute;
    left: 0;
    padding-top: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: start;
    align-items: center;
    z-index: 2;
}

.drag-handle::after {
    content: "⠿";
    font-size: 25px;
    color: #00000099;
}

.list__item.is-idle .drag-handle {
    cursor: grab;
}

.form-control.study-id {
    position: relative;
}
.form-group .study-id-exist {
    color: #f00;
    font-size: 12px;
    display: none;
}

.ui-datepicker.ui-widget .ui-datepicker-calendar .ui-datepicker-today a {
    background-color: rgba(89, 0, 255, 0.2);
}
#ui-datepicker-div.ui-datepicker {
    position: absolute !important;
}

body.modal-open {
    overflow: hidden !important;
}

.line-break {
    border-bottom: 1px solid #ddd;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.modal-body .col-form-label {
    font-weight: 600;
}

/* SNACKBAR */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    right: 10px;
    top: 80px;
    font-size: 17px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    z-index: 10000;

    .fe {
        border: 1px solid #fff;
        border-radius: 50%;
        margin-right: 6px;
    }

    &.show {
        visibility: visible;
        -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

    &.success {
        background: rgb(23, 186, 17);
    }

    &.error {
        background: rgb(214, 39, 45);
    }
}

@-webkit-keyframes fadein {
    from {
        right: -30px;
        opacity: 0;
    }
    to {
        right: 10px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        right: -30px;
        opacity: 0;
    }
    to {
        right: 10px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        right: 10px;
        opacity: 1;
    }
    to {
        right: -30px;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        right: 10px;
        opacity: 1;
    }
    to {
        right: -30px;
        opacity: 0;
    }
}

.date-range {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px solid #e9eff9;
    border-radius: 7px;
    padding: 0 16px;

    .fc-datepicker {
        width: 120px;
        border: none;
    }
}

.table td {
    padding: 0.1rem 0.5rem !important;
    vertical-align: middle !important;
}

.stripe1 {
    background: #eee;
}
.stripe2 {
    background: #f9f9f9;
}

.status-active {
    text-transform: uppercase;
    color: #888;
    font-size: 0.8rem;

    &::before {
        content: "•";
        margin-right: 4px;
        color: rgb(23, 186, 17);
        font-size: 18px;
    }
}
.status-inactive {
    text-transform: uppercase;
    color: #888;
    font-size: 0.8rem;

    &::before {
        content: "•";
        margin-right: 4px;
        color: rgb(214, 39, 45);
        font-size: 18px;
    }
}

.table-responsive {
    .top {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .dataTables_filter input {
            width: 320px;
        }
    }

    .bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;

        div {
            padding-top: 0.85rem;
        }
    }
}

#filterTopCriteria {
    border: 2px solid #444;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    outline: 0 solid transparent;
    cursor: pointer;
    border-radius: 999px;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    opacity: 1;
    outline: 0 solid transparent;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    background: url("../images/app/icons/download.svg") no-repeat;
    background-size: 18px 18px;
    background-position: center center;
    margin-left: 10px;

    .dt-button {
        border: none;
        background: none;
        padding: 0;
        margin: 0;
        display: block;
        text-indent: -90px;
        text-indent: -9999em;
        text-transform: uppercase;
    }
}

/* button */
.btn-download {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border: 2px solid #444;
    border-radius: 50%;
    text-align: center;
    padding-bottom: 4px;

    img {
        width: 90%;
        height: 90%;
        margin-bottom: 2px;
    }

    &:hover {
        background: #ccc;
    }
}

.faq-item {
    cursor: grab;
}

.faq-item:active {
    cursor: grabbing;
}
.faq-item:hover .card {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
}

#description {
    min-height: 120px; /* Adjust for 5 rows */
    max-height: 300px; /* Optional max height */
    overflow-y: auto; /* Enable scrolling if needed */
}

/* Adherence */
.amount {
    background: rgb(48, 180, 92);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    margin: auto;
    cursor: pointer;

    &.amount-red {
        background: rgb(180, 47, 47);
    }
}

.popover-header {
    background-color: #ddd  !important;
}

.popover-body {

    .container {
        border-bottom: 1px solid #888;
        padding: 0.5rem 0;


        .status {
            color: #FFF;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            font-size: 12px;
            font-weight: 600;
            display: flex;
            justify-content: center;
            align-items: center;

            &.status-done {
                background:rgb(48, 180, 92);
            }
            &.status-not {
                background:rgb(180, 48, 48);
            }
        }

        .survey-name {
            font-weight: 16px;
            font-weight: 600;
            color: #333;
        }

        &:last-child {
            border-bottom: none;
        }
    }
}

.form-control {

    &.other-text {
        display: inline-block;
        padding-left: 0;
        width: 260px;
    }
}

.tooltip{
    z-index: 9999 !important;
}

.richText-editor {

    &.is-invalid {
        border: 1px solid red;
    }

    b {
        font-weight: 600;
    }

    ul {
        list-style-type: initial;
    }

}

.col-form-text {
    background: #f0eff5;
    border-radius: 6px;
    padding: 6px 6px;
}
#modalEditOrder .col-form-label {
    padding-bottom: 0;
}

.select2-container--open {
    z-index: 9999999
}

.order-test-result-img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 12px;
}

.text-capital {
    text-transform: capitalize;
}

    .text-min {
        color: #148a3f;
        font-weight: 600;
    }
    .text-mild {
        color: #598a14;
        font-weight: 600;
    }
    .text-mod {
        color: #a39b01;
        font-weight: 600;
    }
    .text-mose {
        color: #b05b05;
        font-weight: 600;
    }
    .text-sev {
        color: #8a1a14;
        font-weight: 600;
    }


.app-sidebar {
    overflow-y: auto;

    /* width */
    &::-webkit-scrollbar {
        width: 2px;
    }

    /* Track */
    &::-webkit-scrollbar-track {
        border-radius: 10px;
    }

    /* Handle */
    &::-webkit-scrollbar-thumb {
        border-radius: 10px;
    }
}

.main-chat-body .main-msg-wrapper {
    max-width: 80%;
}

.main-chat-list .media:hover, .main-chat-list .media:focus {
    background-color: #e4e2f4 !important;
}
